Add initial Spice Cloud Deploy GitHub Action#1
Merged
Conversation
Node 20 TypeScript action that deploys Spice.ai Cloud apps via the Management API using OAuth 2.0 client credentials, with optional post-deploy SQL/NSQL/search/chat/MCP smoke tests using the @spiceai/spice SDK. Includes action.yml, full deploy orchestration (resolve/create app, push spicepod, upsert secrets, trigger + poll deployment), regional runtime URL derivation, app tag merging, masked secrets, GitHub step summary, examples, CI matrix (Ubuntu/macOS/Windows), release workflow, and 61 unit tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Node 20 TypeScript GitHub Action that deploys Spice.ai Cloud apps via the Management API using OAuth 2.0 client credentials, with optional post-deploy SQL / NSQL / search / chat / MCP smoke tests using the
@spiceai/spiceSDK.spicepod.yaml, upsert app secrets, trigger deployment, poll until terminal.sqlJson), NSQL (nsql), and ready-check via the@spiceai/spiceSDK;/v1/chat/completions,/v1/search,/v1/mcpvia direct fetch.https://<region>-prod-aws-data.spiceai.io, overridable viaruntime-url.app-id,app-name,app-url,deployment-id,deployment-status,deployment-created-at,test-results(JSON).What's included
action.yml,src/, bundleddist/index.js(esbuild, ~1.5 MB minified).dist/freshness check) on Ubuntu/macOS/Windows + npm audit job.v1) and creates a GitHub release.workflow_dispatchtest-action workflow for live verification.CHANGELOG.md,CONTRIBUTING.md,SECURITY.md,examples/{basic,full}.yml,examples/spicepod.yaml.Test plan
dist/freshness, audit).Test actionworkflow against a real Spice Cloud app and confirm it deploys + smoke tests pass.@v1from a consumer repo after first release; verify floating tag moves.client-secret, OAuth token, app secrets, or runtime API key in the rendered log).Follow-ups
v1.0.0once this lands and CI is green.@v1from a downstream sample repo.